package com.atguigu.client;

import com.atguigu.result.RetVal;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

@FeignClient(value = "shop-seckill")
public interface SeckillFeignClient {
    //1.查询秒杀商品列表
    @GetMapping("/seckill/queryAllSecKillProduct")
    public RetVal queryAllSecKillProduct();
    //2.查询秒杀商品详情信息
    @GetMapping("/seckill/querySeckillProductById/{skuId}")
    public RetVal querySeckillProductById(@PathVariable Long skuId);
    //5.查询用户是否有抢购资格
    @GetMapping("/seckill/seckillConfirm")
    public RetVal seckillConfirm();

}
